package com.zxd.iostream.buffer;

import java.io.*;

/**
 * ClassName:ReadWriteBuffer
 * Package:com.zxd.iostream.buffer
 *
 * @Date:2023/10/11 16:36
 * @Author:zxde
 */
public class ReadWriteBuffer {
    public static void main(String[] args) throws IOException {
        File file = new File("logout.txt");
        String s =null;
        try(
                BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
                ) {

            while ((s = bufferedReader.readLine()) != null) {
                System.out.println(s);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
